.class public Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;
.super Landroid/app/Service;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

.field private c:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->c:Ljava/lang/String;

    return-void
.end method

.method private a()V
    .locals 2

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->b()Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    if-eqz v0, :cond_1

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u4e0a\u4f20\u7684\u6587\u4ef6"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "\u4e0d\u5b58\u5728\uff0c\u5220\u9664\u6570\u636e\u5e93\u8bb0\u5f55\uff0c\u5f00\u59cb\u4e0b\u4e00\u6761"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lcom/waiqin365/lightapp/visit/bv;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/bv;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/bv;->start()V

    goto :goto_0

    :cond_1
    const-string/jumbo v0, "\u6ca1\u6709\u6570\u636e\u9700\u8981\u4e0a\u4f20,\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->d()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->f()V

    return-void
.end method

.method private b()V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "data="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v3

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v0, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "exception="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v0, ""

    :try_start_1
    const-string/jumbo v0, "1"

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v3}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->e()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, "/app/user_defined/client/v1/saveData.action"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v4, "Content-Type"

    const-string/jumbo v5, "application/x-www-form-urlencoded"

    invoke-virtual {v3, v4, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v4, "auth-code"

    invoke-virtual {v3, v4, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {v0, v3, v1}, Lcom/waiqin365/compons/b/a;->c(Ljava/lang/String;Ljava/util/HashMap;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u6570\u636e\u4e0a\u4f20\u8fd4\u56de="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/net/SocketTimeoutException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_4
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_5

    :try_start_2
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, ""

    const-string/jumbo v2, "code"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string/jumbo v0, "code"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :cond_1
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_4

    :goto_2
    return-void

    :cond_2
    :try_start_3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, "/app/customer_visit/client/v1/saveVisit.action"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_3
    .catch Ljava/net/SocketTimeoutException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_3 .. :try_end_3} :catch_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_4
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_5

    move-result-object v0

    goto :goto_1

    :cond_3
    :try_start_4
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u6570\u636e\u4e0a\u4f20\u8fd4\u56de\u6570\u636ecode\u9519\u8bef:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ",\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catch Ljava/net/SocketTimeoutException; {:try_start_4 .. :try_end_4} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_4 .. :try_end_4} :catch_3
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_4

    goto :goto_2

    :catch_1
    move-exception v0

    :try_start_5
    const-string/jumbo v0, "\u6570\u636e\u4e0a\u4f20\u8fd4\u56de\u6570\u636e\u89e3\u6790\u5f02\u5e38,\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V
    :try_end_5
    .catch Ljava/net/SocketTimeoutException; {:try_start_5 .. :try_end_5} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_5 .. :try_end_5} :catch_3
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5

    goto :goto_2

    :catch_2
    move-exception v0

    const-string/jumbo v0, "\u6570\u636e\u4e0a\u4f20\u901a\u4fe1\u8d85\u65f6,\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_2

    :catch_3
    move-exception v0

    const-string/jumbo v0, "\u6570\u636e\u4e0a\u4f20\u901a\u4fe1\u57df\u540d\u9519\u8bef,\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_2

    :catch_4
    move-exception v0

    const-string/jumbo v0, "\u6570\u636e\u4e0a\u4f20\u901a\u4fe1IO\u9519\u8bef,\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_2

    :catch_5
    move-exception v0

    const-string/jumbo v0, "\u6570\u636e\u4e0a\u4f20\u901a\u4fe1\u5f02\u5e38,\u4e3b\u52a8\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_2
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b()V

    return-void
.end method

.method private c()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\u5df2\u4e0a\u4f20\u6210\u529f\uff0c\u5220\u9664\u6570\u636e\u5e93\u8bb0\u5f55\uff0c\u5f00\u59cb\u4e0b\u4e00\u6761"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    :cond_0
    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Ljava/lang/String;)Z

    return-void
.end method

.method private d()V
    .locals 3

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "file.separator"

    invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/fiberhome/gaea/client/c/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "/data/customform/submitdata/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5220\u9664\u8868\u5355\u6587\u4ef6\u5939"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/io/File;)V

    return-void
.end method

.method private e()V
    .locals 6

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "file.separator"

    invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/fiberhome/gaea/client/c/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "/data/customform/submitcache/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/d/k;->c()J

    move-result-wide v2

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    const/4 v0, 0x0

    :goto_0
    if-eqz v1, :cond_1

    array-length v4, v1

    if-ge v0, v4, :cond_1

    aget-object v4, v1, v0

    invoke-virtual {v4}, Ljava/io/File;->lastModified()J

    move-result-wide v4

    cmp-long v4, v4, v2

    if-gez v4, :cond_0

    aget-object v4, v1, v0

    invoke-virtual {v4}, Ljava/io/File;->delete()Z

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method private f()V
    .locals 8

    const v6, 0x7f0802b2

    const-string/jumbo v0, "notification"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    invoke-virtual {p0, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    new-instance v4, Landroid/app/Notification;

    const v5, 0x7f020450

    invoke-direct {v4, v5, v1, v2, v3}, Landroid/app/Notification;-><init>(ILjava/lang/CharSequence;J)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->getString(I)Ljava/lang/String;

    move-result-object v2

    const v3, 0x7f0802b3

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v5, Landroid/content/Intent;

    invoke-direct {v5}, Landroid/content/Intent;-><init>()V

    const/high16 v6, 0x20000000

    invoke-virtual {v5, v6}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    const/4 v6, 0x0

    const/high16 v7, 0x8000000

    invoke-static {p0, v6, v5, v7}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v5

    invoke-virtual {v4, v1, v3, v2, v5}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    const v1, 0x7f02016e

    invoke-virtual {v0, v1, v4}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    return-void
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public onCreate()V
    .locals 4

    const/4 v3, 0x6

    invoke-static {p0}, Lcom/fiberhome/gaea/client/c/a;->b(Landroid/content/Context;)Ljava/lang/String;

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    invoke-virtual {v1, v3}, Ljava/util/Calendar;->get(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->b(Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->e()V

    invoke-static {p0}, Lcom/waiqin365/base/db/keyvalue/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/keyvalue/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/keyvalue/f;->a()Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "login_person_userid"

    const-string/jumbo v1, ""

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->c:Ljava/lang/String;

    :cond_0
    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->c:Ljava/lang/String;

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Ljava/lang/String;Ljava/lang/String;)Z

    invoke-static {p0}, Lcom/fiberhome/upload/c/c;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "\u7f51\u7edc\u672a\u5f00\u542f\uff0c\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    :goto_0
    return-void

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "file.separator"

    invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/fiberhome/gaea/client/c/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "/data/sys/setting.xml"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/c/a/b;->a(Ljava/lang/String;Landroid/content/Context;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    if-nez v2, :cond_2

    const-string/jumbo v0, "\u8bbe\u7f6e\u4fe1\u606f\u8bfb\u53d6\u6587\u4ef6\u5f02\u5e38\uff0c\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, ""

    const-string/jumbo v1, ""

    const-string/jumbo v3, "newip"

    invoke-virtual {v2, v3}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v3

    if-eqz v3, :cond_3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v0

    :cond_3
    const-string/jumbo v3, "newport"

    invoke-virtual {v2, v3}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    if-eqz v2, :cond_4

    invoke-virtual {v2}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v1

    :cond_4
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_5

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_6

    :cond_5
    const-string/jumbo v0, "\u8bbe\u7f6e\u4fe1\u606f\u8bfb\u53d6\u5931\u8d25\uff0c\u5173\u95ed\u4e0a\u4f20\u670d\u52a1"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->stopSelf()V

    goto :goto_0

    :cond_6
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "http://"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, ":"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u4e0a\u4f20\u670d\u52a1\u5668\u5730\u5740:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->a()V

    goto/16 :goto_0
.end method

.method public onDestroy()V
    .locals 2

    const-string/jumbo v0, "service destroy"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/a;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->b:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    const-string/jumbo v0, "notification"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitFormBgSubmitService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    const v1, 0x7f02016e

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    return-void
.end method

.method public onStart(Landroid/content/Intent;I)V
    .locals 0

    return-void
.end method
